package com.weiqiao.api.repository.impl;

import com.weiqiao.api.repository.IVarietyApiRepository;
import com.weiqiao.base.dao.impl.BaseMongoDaoImpl;
import org.bson.conversions.Bson;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ChenYF
 * @Description
 * @Date 2020/7/27 15:30
 */
@Repository("VarietyApiRepositoryImpl")
public class VarietyApiRepositoryImpl extends BaseMongoDaoImpl implements IVarietyApiRepository {

    private static final String COLLECTIONAME = "variety";

    @Override
    public List<String> getVarietyList(Bson filter) {
        List<String> list = this.findFilter(COLLECTIONAME, filter);
        return list;
    }
}
